import request from '@/utils/request'

// 查询学院试卷列表
export function listCollegePaper(query) {
  return request({
    url: '/system/collegePaper/list',
    method: 'get',
    params: query
  })
}

// 查询学院试卷详细
export function getCollegePaper(id) {
  return request({
    url: '/system/collegePaper/' + id,
    method: 'get'
  })
}

// 新增学院试卷
export function addCollegePaper(data) {
  return request({
    url: '/system/collegePaper',
    method: 'post',
    data: data
  })
}

// 修改学院试卷
export function updateCollegePaper(data) {
  return request({
    url: '/system/collegePaper',
    method: 'put',
    data: data
  })
}

// 删除学院试卷
export function delCollegePaper(id) {
  return request({
    url: '/system/collegePaper/' + id,
    method: 'delete'
  })
}

// 导出学院试卷
export function exportCollegePaper(query) {
  return request({
    url: '/system/collegePaper/export',
    method: 'get',
    params: query
  })
}

// 查询[题库]列表
export function listquestionStore(query) {
  return request({
    url: '/system/questionStore/list',
    method: 'get',
    params: query
  })
}


// 查询[系统组卷]列表
export function getPaperList(query) {
  return request({
    url: '/system/paper/list',
    method: 'get',
    params: query
  })
}


// 获取超管中的试卷信息
export function getParerQueList(id) {
  let data = {
    'id': id
  }
  return request({
    url: '/system/collegePaper/getParerQueList',
    method: 'get',
    params: data
  })
}